//
//  VCViewController.m
//  MessageChat
//
//  Created by Mr.H on 2018/1/26.
//  Copyright © 2018年 Mr.H. All rights reserved.
//

#import "VCViewController.h"
#import "ViewController.h"
@interface VCViewController ()

@end

@implementation VCViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    
    btn.backgroundColor = [UIColor brownColor];
    
    [btn setTitle:@"点击我" forState:UIControlStateNormal];
    
    [btn addTarget:self action:@selector(touchBtn) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:btn];
    
}

- (void) touchBtn {
    
    [self.navigationController pushViewController:[ViewController new] animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
